<?php
namespace app\admin\validate;
use think\Validate;
class Cate extends Validate{
	//栏目验证
	
    protected $rule = [
        'catename'  =>  'require|max:12|unique:cate',
    ];
	
    protected $message  =   [
        'catename.require' => '栏目名称必须填写',
        'catename.max' => '栏目名称长度不得大于12位',
        'catename.unique' => '栏目名称不得重复',
    ];

}
